﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AssignUser.ascx.vb" Inherits="WebForm_ManageRoleUserMappingByUser_AssignUser" %>
<%--<%@ Register Src="~/WebForm/SearchRoleUserMappingByRole.ascx" TagName="SearchRoleUserMappingByRole" TagPrefix="My" %>--%>
<%@ Register Src="~/WebForm/ManageRoleUserMappingByUser/SearchUserControl.ascx" TagName="SearchUserControl" TagPrefix="My" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlOrganization" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>
        <td align="right">
            <asp:Label ID="lblUserType" runat="server" meta:resourcekey="lblUserType"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlUserType" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblUserID" runat="server" meta:resourcekey="lblUserID"></asp:Label>
        </td>
        <td align="left">
            <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
        </td>
        <td align="right">
            <asp:Label ID="lblUserName" runat="server" meta:resourcekey="lblUserName"></asp:Label>
        </td>
        <td align="left">
            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
        </td>        
        <td align="left">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>    
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" DataKeyNames="RoleID,UserID" AllowHoverSelect="false" AllowHoverEffect="false" meta:resourcekey="gv">
    <Columns>
        <asp:BoundField DataField="ParentRoleName" meta:resourcekey="bfParentRoleName" ReadOnly="true" />
        <asp:BoundField DataField="RoleName" meta:resourcekey="bfRoleName" />
        <asp:BoundField DataField="UserName" meta:resourcekey="bfUserName" />
        <asp:BoundField DataField="RoleDescription" meta:resourcekey="bfRoleDescription" />
        <asp:TemplateField>
            <ItemTemplate>
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="AddButtonView" runat="server">
                        <asp:Button ID="btnAddUser" runat="server" meta:resourcekey="btnAddUser" CommandName="btnAddUser" />
                    </asp:View>
                    <asp:View ID="DeleteButtonView" runat="server">
                        <asp:Button ID="btnDeleteUser" runat="server" meta:resourcekey="btnDeleteUser" CommandName="Delete" />
                    </asp:View>                    
                </asp:MultiView>
                
            </ItemTemplate>
        </asp:TemplateField>         
    </Columns>
</My:MyGridView>
 <%--<My:SearchRoleUserMappingByRole ID="SearchRoleUserMappingByRole1" runat="server" />--%>
 <My:SearchUserControl ID="SearchUserControl1" runat="server" />